<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>
<div id="sf_admin_container">

<h1>Ajouter un evenement</h1>
<div id="sf_admin_content">
<?php echo form_tag('planning/addEvent', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

<fieldset id="sf_fieldset_none" class="">

<div class="form-row">
      <?php echo label_for('title' ,'Titre evenement', 'class="required" ') ?>
      <div class="content">
          <?php if ($sf_request->hasError('title')): ?>
            <?php echo form_error('title', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
          <?php echo input_tag('title') ?>
      </div>
 </div>

<div class="form-row">
      <?php echo label_for('date_debut' ,'Date de début (dd/mm/yyyy)', 'class="required" ') ?>
      <div class="content">
          <?php if ($sf_request->hasError('date_debut')): ?>
            <?php echo form_error('date_debut', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
        <?php echo input_date_tag('date_debut', '', array (
                    'rich' => true,
                    'calendar_button_img' => '/sf/sf_admin/images/date.png'
                    )); ?>
      </div>
 </div>

<div class="form-row">
      <?php echo label_for('sdate_hh' ,'Heure de début (hh:mm):', 'class="required" ') ?>
      <div class="content">
          <?php if ($sf_request->hasError('sdate_hh')): ?>
            <?php echo form_error('sdate_hh', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
         <?php if ($sf_request->hasError('sdate_ii')): ?>
            <?php echo form_error('sdate_ii', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
         <?php echo input_tag('sdate_hh') ?>
         <?php echo input_tag('sdate_ii') ?>
      </div>
 </div>

<div class="form-row">
      <?php echo label_for('date_fin' ,'Date de fin (dd/mm/yyyy)', 'class="required" ') ?>
      <div class="content">
          <?php if ($sf_request->hasError('date_fin')): ?>
            <?php echo form_error('date_fin', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
         <?php echo input_date_tag('date_fin', '', array (
                    'rich' => true,
                    'calendar_button_img' => '/sf/sf_admin/images/date.png',
                    )); ?>
      </div>
 </div>

<div class="form-row">
      <?php echo label_for('edate_hh' ,'Heure de fin (hh:mm): ', 'class="required" ') ?>
      <div class="content">
         <?php if ($sf_request->hasError('edate_hh')): ?>
            <?php echo form_error('edate_hh', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
          <?php if ($sf_request->hasError('edate_ii')): ?>
            <?php echo form_error('edate_ii', array('class' => 'form-error-msg')) ?>
          <?php endif; ?>
         <?php echo input_tag('edate_hh') ?>
         <?php echo input_tag('edate_ii') ?>
      </div>
 </div>
<ul class="sf_admin_actions">
  <li><?php echo submit_tag(__('enregistrer'), array (
  'name' => 'save',
  'class' => 'sf_admin_action_save',
)) ?></li>
  <li><?php echo button_to('reset', '',''); ?></li>
</ul>
      
  </fieldset>
</form>
</div>
</div>
